package com.dandelion.commons.web.model;

import java.util.ArrayList;
import java.util.List;

public class DataGrid<T> extends PageVo<T> {

	/** 总记录数 */
	private int total;
	
	/** 每行记录 */
	private List<T> rows;
	
	private List<?> footer;
	
	public List<?> data ;

	
	public DataGrid() {}
	public DataGrid(int pageNum) {
		super(pageNum);
	}
	public DataGrid(int pageNum, int pageSize) {
		super(pageNum, pageSize);
	}
	
	public int getTotal() {
		return total;
	}

	public void setTotal(int total) {
		this.total = total;
	}

	public List<T> getRows() {
		if(rows == null) {
			rows = new ArrayList<T>();
		}
		return rows;
	}

	public void setRows(List<T> rows) {
		this.rows = rows;
	}

	public List<?> getFooter() {
		return footer;
	}

	public void setFooter(List<?> footer) {
		this.footer = footer;
	}

	public List<?> getData() {
		return data;
	}

	public void setData(List<?> data) {
		this.data = data;
	}
	
	
}
